<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/1/6
 * Time: 10:56
 */

namespace Home\Controller;


use Common\Logic\JwtLogic;

class TestController extends HomeController
{
//    public function jwt(){
//        $header = JwtLogic::getJwtHeader(UID);
////        $opt = array(
////            'http'=>array(
////                'method'=>'get',
////                'header'=>$header
////            )
////        );
////        $context = stream_context_create($opt);
////        $html = file_get_contents('http://oa.bestzhan.com/createLiveTelecast?isCenter=1', false, $context);
////        echo $html;
//        $data =  curl_request('http://oa.bestzhan.com/createLiveTelecast?isCenter=1', false, $header);
//        echo $data;
////        $result = JwtLogic::getToken(2);
////        echo $result;
//    }
//
//    public function decode(){
//        $res = JwtLogic::decode();
//        $this->sucessJson($res);
//    }

}